//数码管驱动
#include "../MCU_Mold/MCU_F_C_Convert.h"

#ifndef UI_H
#define UI_H

typedef enum
{
    Alart_None = 0,
    Alart_Action,
}Alart_Type;
typedef struct
{
    uint32_t Actual;
    uint32_t Settings;   
    Alart_Type Alart_State;
}UI_Param_Typedef;
typedef enum
{
    Alarm_None = 0,
    Alarm_Timer1,
    Alarm_RTD,
    Alarm_ProbeA_Enable,
    Alarm_ProbeA_Action,
    Alarm_ProbeB_Enable,
    Alarm_ProbeB_Action,
}UI_Alarm_E;
typedef enum
{
    UI_OFF = 0,
    UI_ON = 1,
}UI_State_E;
typedef enum
{
    Shine_All = 0, //所有段码闪耀
    Shine_Init,
    Shine_OFF, //正常不闪耀
    Shine_ON, //闪耀
}Shine_E;
typedef struct 
{
    UI_Param_Typedef Timer1;
    uint8_t Pset;
    // MCU_Time_T Timer1_T;
    Shine_E Shine_Colon;
    Shine_E Shine_WIFI;
    uint8_t ShineCtrl;

    UI_State_E State_TempCtrl;
    // UI_Number_E State_Operation;
    UI_State_E ICO_WIFI;
    UI_State_E ICO_Bluetooth;
    UI_State_E ICO_Auger;
    UI_State_E ICO_Fan;
    UI_State_E ICO_Heating;
    UI_State_E ICO_Error;
    UI_State_E ICO_Cell;

    UI_Alarm_E Alarm_Timer;
    UI_Alarm_E Alarm_RTD;
    UI_Alarm_E Alarm_ProbeA;
    UI_Alarm_E Alarm_ProbeB;

    Grill_Unit_E Grill_Unit;
    UI_State_E UI_Show;
    UI_State_E UI_Show_Colon;
    uint16_t ShutdownCount;
}UI_System_S;
extern UI_System_S UI_System;

extern uint16_t Factory_Show_Num;
extern uint8_t show_shine;
extern uint16_t Ver_Enable;
extern uint16_t Shutdown_CountDown;

void UI_Show(int32_t temp);
void UI_Init(void);
void UI_Ver(void);

#endif
